package com.cjh.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cjh.common.dto.CommodityDTO;
import com.cjh.common.dto.CommodityDTO1;
import com.cjh.common.entity.Commodity;
import com.cjh.common.wxDto.CommoditySpecificationsDTO;
import com.cjh.common.wxDto.WXCommodityDetailsDTO;

import java.util.List;

/**
 * @Entity com.cjh.common..Commodity
 */
public interface CommodityMapper extends BaseMapper<Commodity> {
    //sys
    List<CommodityDTO> getPagingCommodity(Integer start, Integer size, Integer userId, Integer storeId, String commodityName, Integer isShow);

    Integer getPagingCommodityTotal(Integer userId, Integer storeId, String commodityName,Integer isShow);

    CommodityDTO1 getCommodityById(Integer id);

    Integer selectCommodityAllSalesByCommodity(Integer commodity);
    //wx
    List<WXCommodityDetailsDTO> getAllCommodityByStoreId(Integer storeId);

    WXCommodityDetailsDTO getCommodityByCommodity(Integer commodity);

    CommoditySpecificationsDTO getCommodityAndSpecificationsByCommodity(Integer commodity);
}




